/*
 * filename：StatTransactionImpl.java
 * copyright：Copyright by rocky
 * description: <br>
 */
package com.woolink.per.service.stat.transaction.impl;

import java.util.Map;

import com.woolink.per.common.QueryResults;
import com.woolink.per.log.syslog.RunLog;
import com.woolink.per.service.stat.dao.StatDataDao;
import com.woolink.per.service.stat.transaction.StatDataTransaction;

public class StatDataTransactionImpl implements StatDataTransaction
{
    private RunLog runLog;
    
    private StatDataDao statDataDao;
    
    public QueryResults queryByProperty(Map params)
    {
        runLog.info("params="+params);
        
        QueryResults queryResults = new QueryResults();
        
        queryResults.setResults(statDataDao.findByProperty(params));
        
        return queryResults;
    }

    /**
     * @param runLog The runLog to set.
     */
    public void setRunLog(RunLog runLog)
    {
        this.runLog = runLog;
    }

    /**
     * @param statDataDao The statDataDao to set.
     */
    public void setStatDataDao(StatDataDao statDataDao)
    {
        this.statDataDao = statDataDao;
    }
    
}
